Skip to content

docs: expand localization page with navigation overlay documentation#5287

Merged
devalog merged 8 commits intomainfrom
devin/1777591275-document-translations-feature
May 1, 2026
Merged

docs: expand localization page with navigation overlay documentation#5287
devalog merged 8 commits intomainfrom
devin/1777591275-document-translations-feature

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented Apr 30, 2026

Summary

Expands the Localization documentation page to fully document the navigation translation overlay feature. Previously, the page only had a collapsed "Early access setup" accordion with a basic folder structure. Now it provides clear, step-by-step instructions for:

  • Declaring languages in docs.yml with ISO 639-1 codes
  • Creating navigation overlay files at fern/translations/{locale}/fern/docs.yml to translate product switcher names, navbar links, and top-level fields
  • Creating product-level overlays at fern/translations/{locale}/fern/products/{product}/{product}.yml to translate sidebar section names, page names, and tabs
  • Translating version files
  • A summary table showing all overlay file locations and their purpose
  • A complete end-to-end example

This documents the feature described in PR #5203.

Review & Testing Checklist for Human

  • Verify the overlay file paths (fern/translations/{locale}/fern/docs.yml, fern/translations/{locale}/fern/products/...) match what the latest Fern CLI actually expects
  • Check that the example YAML snippets use correct syntax and field names
  • Confirm the ISO 639-1 recommendation aligns with CLI behavior (vs. BCP 47 tags like ja-JP)
  • Preview the page to ensure the <Files>, <Steps>, and code blocks render correctly

Notes

  • The page retains the pre-release availability tag and the alpha note since the feature is still in active development
  • The old accordion-based content was replaced with a clearer top-level ## Setup section using <Steps>
  • The video and example site link are preserved from the original page

Requested by: Fern Support

Document the translation overlay feature for sidebar and tabs:
- How to create fern/translations/{locale}/fern/docs.yml to translate
  product switcher names, navbar links, and top-level fields
- How to create product-level overlays for section/page names
- Version file translation support
- Clear folder structure showing the overlay pattern
- Summary table of overlay file locations
- Complete example showing the full workflow

Co-Authored-By: bot_apk <apk@cognition.ai>
@fern-api fern-api Bot requested a review from devalog as a code owner April 30, 2026 23:23
## Setup

<Accordion title="Early access setup">
Make sure you're on the latest Fern CLI:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[FernStyles.Current] Avoid time-relative terms like 'latest' that become outdated

- lang: zh
```

Use [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language codes (e.g., `en`, `ja`, `zh`, `fr`, `es`, `de`).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'ISO' has no definition.

@github-actions
Copy link
Copy Markdown
Contributor

Co-Authored-By: bot_apk <apk@cognition.ai>
- lang: zh
```

Use [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) two-letter language codes (e.g., `en`, `ja`, `zh`, `fr`, `es`, `de`).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'ISO' has no definition.

@fern-api
Copy link
Copy Markdown
Contributor Author

fern-api Bot commented Apr 30, 2026

Requested by: devin
Slack thread: View conversation

Co-Authored-By: bot_apk <apk@cognition.ai>
- lang: zh
```

Fern supports both two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) codes (e.g., `en`, `ja`, `zh`) and full [BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag) locale tags (e.g., `ja-JP`, `pt-BR`, `zh-Hans-CN`). The locale code you choose here determines your translation folder name under `fern/translations/`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'ISO' has no definition.

devin-ai-integration Bot and others added 3 commits April 30, 2026 23:30

<Step title="Upgrade the Fern CLI">

Localization requires the latest CLI version.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] reported by reviewdog 🐶
[FernStyles.Current] Avoid time-relative terms like 'latest' that become outdated

- lang: zh
```

Fern supports both two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) codes (e.g., `en`, `ja`, `zh`) and full [BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag) locale tags (e.g., `ja-JP`, `pt-BR`, `zh-Hans-CN`).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'ISO' has no definition.

@devalog devalog merged commit 54521dc into main May 1, 2026
2 checks passed
@devalog devalog deleted the devin/1777591275-document-translations-feature branch May 1, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant